import request from '@/utils/request'

// 获取员工列表
export function getAListOfEmployees(params) {
  return request({
    url: '/sys/user',
    method: 'GET',
    params
  })
}

// 删除员工

export function delEmployees(id) {
  return request({
    url: `/sys/user/${id}`,
    method: 'delete'
  })
}

// 新增员工
export function addEmployees(data) {
  return request({
    url: '/sys/user',
    method: 'POST',
    data
  })
}

export function importEmployee(data) {
  return request({
    url: '/sys/user/batch',
    method: 'POST',
    data
  })
}
